<?php

namespace App\Console;

use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        Commands\Fix::class,
        Commands\OrderCancelCheckCommand::class,
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('order:cancel-check')->everyMinute()->withoutOverlapping();
//        $schedule->command('cert 1028')->everyMinute()->withoutOverlapping();
//        $schedule->command('oss_photo:download')->everyMinute()->withoutOverlapping();
    }

//    public function __construct(Application $app, Dispatcher $events)
//    {
//        $this->bootstrappers = array_merge(
//            array_diff($this->bootstrappers, ['Illuminate\Foundation\Bootstrap\ConfigureLogging']),
//            ['App\Rocky\Illuminate\Foundation\Bootstrap\ConfigureLogging']
//        );
//
//        return parent::__construct($app, $events);
//    }
}
